<template>
  <div id="app">
    <el-container class="con_section">
      <el-header class="blueheader">
        <h2 class="headlogo">南京童心门诊后台管理系统</h2>
        <el-col :span="3" class="userinfo">
          <el-button @click="back">退出</el-button>
        </el-col>
      </el-header>
      <el-container>
        <el-aside style="flex: 0 0 230px;width: 230px;background:#eef1f6">
          <el-menu default-active="1" class="el-menu-vertical-demo" @select="handleSelect">
            <el-submenu index="1">
              <template slot="title"><i class="el-icon-message"></i>医生管理系统</template>
              <el-menu-item index="2">未回复</el-menu-item>
              <el-menu-item index="3">已回复</el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main class="home_main">
          <el-col :span="24" class="breadcrumb-container">
            <!--<strong class="title">{{$route.name}}</strong>-->
            <!--<el-breadcrumb separator="/" class="breadcrumb-inner">-->
            <!--<el-breadcrumb-item v-for="item in $route.matched" :key="item.path">-->
            <!--{{ item.name }}-->
            <!--</el-breadcrumb-item>-->
            <!--</el-breadcrumb>-->
          </el-col>
          <el-col :span="24">
            <div style="margin-top:10px">
              <router-view></router-view>
            </div>
          </el-col>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
  export default {
    name: "Dcinfo",
    data() {
      return {
        searchCriteria: '',
      }
    },
    //   methods: {
    //     inqu() {
    //       // alert(this.userName);
    //       this.$ajax.get('http://47.75.110.31:8080/orinfo/findByStatus?status=0')
    //         .then(response => {
    //           this.orinfo = response.data;
    //           console.log(this.orinfo[0].id)
    //         })
    //     },
    //     toDetail (orderId) {
    //       console.log(orderId)
    //       // this.$router.push('/SurgeryOrderDetail?order_id=' + orderId)
    //     }
    //
    //   }
    // }
    methods:{
      back(){
        this.$router.push('/')
      },
      handleIconClick(ev) {
        console.log(ev);
      },
      handleSelect(key, keyPath){
        switch(key){
          case '3':
            this.$router.push('/returned');
            break;
          case '2':
            this.$router.push('/forms')
            break;
          // case '3':
          //   this.$router.push('/Addone1')
          //   break;
        }
      },
    },
  }
</script>

<style scoped>
  .con_section{
    position: absolute;
    top: 0px;
    bottom: 0px;
    left:0px;
    width:100%;
  }
  .blueheader {
    height: 60px;
    line-height: 60px;
    background: #67c23a;
    color: #fff;
  }
  .el-menu-item.is-active {
    color: #67c23a;
  }
  .headlogo{
    float: left;
    height: 60px;
    margin: 0 20px;
    width: 300px;
  }
  ul.el-menu {
    background: #e4e8f1;
  }
  .userinfo{
    position: absolute;
    right: 0;
  }
  .el-submenu__title{
    background:#eef1f6;
  }
  .el_main{
    padding:0px;
  }
  .home_main{
    padding:10px;
  }
  .breadcrumb-container .title {
    width: 200px;
    float: left;
    color: #475669;
    font-size: 13px;
  }
  .breadcrumb-inner {
    float: right;
    font-size: 13px;
  }
  .el-breadcrumb__inner, .el-breadcrumb__inner a {
    font-weight: 400;
  }
</style>

